<script type="text/javascript">
$(function () {
	var url = '${contextPath}script/inv/invInStorage.js';
	$.ajax({url:url, dataType:'script', cache:true,
		success: function(){
			var page = sys_fill_parm('queryinvInStorageForm');
			query_invInStorage(page);
		}
	});
	$('#queryinvInStorageForm').find("input:checkbox, input:radio").not('input.ibtn').uniform();
});
function rb_excel() {
	var bname =$("#bname").val();
	var time1 =$("#time1").val();
	var time2 =$("#time2").val();
	var url = create_url('invInStorage-excel') + '&bname=' + bname +'&time1=' + time1 +'&time2=' + time2;
	window.location.href = url;
} 
</script>

<#import "/freemarker/modeltype.ftl" as mt>
<#import "/freemarker/modeltype_entity.ftl" as mte>

<form id="queryinvInStorageForm">
	<table class="search_term_table">
		<tr><th style="width:60px;">单据编号</th>
			<td><input type="text" name="dn" style="width:80px;"/></td>
			<th style="width:60px;">来往商</th>
			<td><input type="text" name="bname" style="width:80px;" id="bname"/></td>
			<td style="text-align:right;">
				<button class="btn btn-info" onclick="javascript: query_invInStorage(); return false;"><i class="icon-search"></i> 查 询 </button>
				<a href="javascript:;" class="btn btn-info" onclick="javascript: rb_excel();return false;">&nbsp;导&nbsp;&nbsp;出&nbsp;</a>
			</td>
		</tr>
		<tr>
			<th>创建人</th>
			<td><input type="text" name="cn" style="width:80px;" id="cn"/></td>
			<th>创建时间</th>
			<td>
				<input type="text" name="time1" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'});" style="width:80px;" id="time1"/>
				到
				<input type="text" name="time2" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'});" style="width:80px;" id="time2"/>
			</td>
		</tr>
	</table>
</form>
<div id="ResultList"></div>
